package com.xinfan.tank;

/**
 * @Author xin
 * @Date 2022/6/6 16:58
 * @Version 1.0
 */
public class Bomb {
    int x,y;

    int life = 9;
    boolean isLive = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }


    public void lifeDown() {
        if (life > 0) {
            life--;
        } else {
            isLive = false;
        }
    }
}
